<template>
  <div>
    <h2>lala</h2>
    <van-button type="primary">{{ $t("message.hello") }}</van-button>
    <van-button type="warning">{{ $t("message.askForGoods.name") }}</van-button>
    <van-button type="danger">{{ $t("message.welcome") }}</van-button>
    <button @click="change">english</button>
    <button @click="china">中文</button>
  </div>
</template>
<script>
export default {
  methods: {
    change(){
      // Locale.use('en-US', enUS)
      this.$i18n.locale='en'
      this.$Local('en')
    },
    china(){
      this.$i18n.locale='cn'
      this.$Local('cn')
    }
  },
}
</script>
<style scoped>

</style>

